<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title> 4-2 二选一 （if...else语句）</title>
    <link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
    <style type="text/css">
    </style>

    <script type="text/javascript">
        var ticket =true; //ticket初值为true，表示有票
        if(ticket==true)
        {
            document.write("有票，可以看电影。");
        }
        else
        {
            document.write("没票，电影看不成。");
        }
    </script>
</head>

<body>
<div align="center">
    <p><a href="../../index.php#jsjjp" class="fontSize" title="点击进入该目录">目录</a></p>
</div>

<!--<input type="button" onclick="zhencha()" value="点击查询"/>-->

<script type="text/javascript">

</script>

</body>
</html>
